package com.aaa.choose.controller.api;

import com.aaa.choose.service.SelectAreaService;
import com.aaa.vo.Result;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author wys
 * @version 1.0
 * @date 2023/3/6 10:39
 */
@Api(value = "/choose/api/selectAreaController", tags = {"查询地区"})
@RestController
@RequestMapping("/choose/api/selectAreaController")
public class SelectAreaController {
    @Autowired
    private SelectAreaService selectAreaService;
    @ApiImplicitParams({
            @ApiImplicitParam(paramType = "query", dataType = "int", name = "areaId", value = "", required = true)
    })
    @ApiOperation(value = "", notes = "")
    @RequestMapping("/selectArea")
    public Result selectArea(Integer areaId){return selectAreaService.selectShop(areaId);}
}
